package com.beichuan_travel.interfaces.transform;

import com.beichuan_travel.model.dto.PlanDTO;
import com.beichuan_travel.model.po.PlanPO;
import com.beichuan_travel.model.vo.PlanVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface PlanCovertBasic {

    PlanCovertBasic INSTANCE = Mappers.getMapper(PlanCovertBasic.class);

    PlanVO POtoCovertVO(PlanPO planPO);

    PlanPO DTOtoCovertPO(PlanDTO planDTO);

    List<PlanVO> POtoCoertVO(List<PlanPO> list);

    List<PlanPO> DTOtoCovertPO(List<PlanDTO> list);
}
